package com.skt.common_hr.holotreq.event
{
	import flash.events.Event;

	public class WorkTimeEvent extends Event
	{
		public static const CHANGED_MONTH:String 		= "changedMonth";
		public static const CHANGED_RANGE:String 		= "changedRange";
		public static const SELECTED_WORKTIME:String 	= "selectedWorkTime";
		public static const SELECTED_VACATION:String 	= "selectedVacation";
		public static const MODIFY_WORKTIME:String 		= "modifyWorkTime";
		public static const MODIFY_VACATION:String		= "modifyVacation";
		public static const READ_WORKTIME:String 		= "readWorkTime";
		public static const READ_VACATION:String		= "readVacation";
		
		public var start:Date;
		public var end:Date = null;
		public var key:String;
		
		public function WorkTimeEvent(type:String, bDate:Date, eDate:Date=null, key:String="")
		{
			super(type, false, false);
			this.start = new Date(bDate);
			if(eDate)
				this.end   = new Date(eDate);
			this.key	   = key; 
		}
		
		override public function clone():Event
		{
			return new WorkTimeEvent(this.type, start, end, key);
		}
		
	}
}